Skip to content

[VC-52458] Support both number and string for tsgID#798

Merged
inteon merged 1 commit intomasterfrom
tsgID_number_or_string
May 4, 2026
Merged

[VC-52458] Support both number and string for tsgID#798
inteon merged 1 commit intomasterfrom
tsgID_number_or_string

Conversation

@inteon
Copy link
Copy Markdown
Contributor

@inteon inteon commented May 2, 2026

Based on feedback, this change updates tsgID to accept both numbers and strings.
Previously, the Helm chart’s values.schema.json enforced tsgID as a string. However, this constraint introduced unnecessary friction for users during initial setup.
To improve the user experience, we now allow both numeric and string inputs. As a side effect, this adds some complexity to the chart implementation, requiring a workaround for a Helm issue related to scientific notation handling.

context: in #793 we enforced tsgID to be a string

$ helm template ./deploy/charts/discovery-agent \
    --set config.tsgID=111111111111111111111111 \
    --set config.clusterName=aaa | grep 1111
            - "111111111111111111111111"

Signed-off-by: Tim Ramlot <42113979+inteon@users.noreply.github.com>
@inteon inteon changed the title Support both number and string for tsgID [VC-52458] Support both number and string for tsgID May 2, 2026
@inteon inteon added test-e2e To signal e2e test job to be run test-ngts test-ark labels May 2, 2026
@maelvls maelvls self-requested a review May 4, 2026 08:06
@maelvls
Copy link
Copy Markdown
Member

maelvls commented May 4, 2026

Works as expected, nice, thanks for fixing this.

For whaat it's worth, the string-based methods still work as expected:

$ helm template ./deploy/charts/discovery-agent \
    --set config.tsgID=\\"111\\" \
    --set config.clusterName=aaa | grep 111
            - "111"
$ helm template ./deploy/charts/discovery-agent \
    --set-string config.tsgID=111 \
    --set config.clusterName=aaa | grep 111
            - "111"

@inteon inteon merged commit 240afa6 into master May 4, 2026
5 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

test-ark test-e2e To signal e2e test job to be run test-ngts

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants